.split-panel-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--el-bg-color);

  &.resizing {
    cursor: ew-resize;
  }

  &.horizontal {
    flex-direction: column;

    &.resizing {
      cursor: ns-resize;
    }
  }

  .split-panel-slot,
  .split-panel-default {
    flex-shrink: 1;
    flex-basis: 0;
    overflow: auto;
    will-change: flex-grow;
  }

  .split-panel-resizer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: auto;
    color: var(--el-color-primary);
    touch-action: none;
    cursor: ew-resize;
    user-select: none;

    &.not-resizable {
      color: currentcolor;
      cursor: auto;
    }

    .split-panel-resizer__handler {
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2px 0;
      background-color: var(--el-border-color-lighter);
      border-radius: 4px;

      svg {
        z-index: 10;
      }

      &::after {
        position: absolute;
        width: 1px;
        height: 100%;
        content: '';
        background-color: var(--el-border-color-lighter);
      }

      &.hideLine {
        &::after {
          background-color: transparent;
        }
      }
    }

    &.horizontal {
      width: auto;
      height: 12px;
      cursor: ns-resize;

      &.not-resizable {
        cursor: auto;
      }

      .split-panel-resizer__handler {
        padding: 0 2px;

        svg {
          transform: rotate(90deg);
        }

        &::after {
          position: absolute;
          width: 100%;
          height: 1px;
          content: '';
          background-color: var(--el-border-color-lighter);
        }

        &.hideLine {
          &::after {
            background-color: transparent;
          }
        }
      }
    }
  }
}
